import re

with open('muffet.log', 'r') as file:  
    lines = file.readlines()  
  
lines = [line for line in lines if 'https://gitee.com' not in line]  
lines = [line for line in lines if 'http://beian.miit.gov.cn/' not in line]  
lines = [line for line in lines if 'https://mbd.pub/o/kkbt' not in line]  
lines = [line for line in lines if 'https://github.com' not in line]  
lines = [line for line in lines if 'https://creativecommons.org' not in line]  
lines = [line for line in lines if 'https://play.google.com' not in line]  
lines = [line for line in lines if 'https://archived.ftls.xyz/matrix.to/' not in line]  
lines = [line for line in lines if 'https://flask-use-test-fkhbfuenab.cn-hangzhou.fcapp.run' not in line]  


# lines = [line for line in lines if not re.match(r'^\s*http://127', line)] 

with open('muffet.log', 'w') as file:  
    file.writelines(lines)